﻿using System;
using FBGraph.Models;

namespace FBGraph.Controllers
{
    /// <summary>Provides access to <see cref="Page" /> objects and connections.</summary>
    public class PagesController : FBGraphController, IFBGraphConnectionController<Page>, IFBGraphPrimaryController<Page>, IFBGraphSearchController<Page>
    {
        /// <summary>Initializes an instance of <see cref="PagesController" /> for the specified
        /// <see cref="IFBGraphContext" /> instance.</summary>
        /// <param name="context"></param>
        public PagesController(IFBGraphContext context) : base(context) { }

        /// <summary>Gets the name of the Graph API connection this controller provides access to.</summary>
        String IFBGraphConnectionController<Page>.ConnectionName { get { return "pages"; } }

        #region [ IFBGraphSearchController<Page> Members ]

        String IFBGraphSearchController<Page>.SearchType
        {
            get { return "page"; }
        }

        #endregion
    }
}